<template>
  <div class="recommend">
      <div v-for="item in recommends" :key="item.image" class="recommend-item">
          <a :href="item.link">
              <img :src="item.image">
              <div>{{item.title}}</div>

          </a>
      </div>
  </div>
</template>

<script>
export default {
    props: {
        recommends:{
            type:Array,
            default(){
                return [];
            }
        }
    }
}
</script>

<style>
    .recommend{
        display: flex;
        width: 100%;
        text-align: center;
        padding: 15px 0 30px;
        border-bottom: 8px solid #eee;
    }
    .recommend-item{
       
        flex: 1; /* 均等分 */
    }
      .recommend-item img{
         height: 75px;
         width:  75px;
         margin-bottom: 8px;
    }
</style>